﻿@model VIC.User.ViewModels.VIC_UserChangePasswordVM

@using (Html.BeginFormAntiForgeryPost())
{
    <div id="maincontainer">
    <main>
        <div id="profile">
            <table style="width:200px;">
                <tr>
                    <td><a href="~/VIC.User/Account/ViewUser/@Model.ID"><img src="../../../Modules/VIC.User/Styles/images/icon_black.png"style="margin:0px 0px 40px"/></a></td>
                </tr>
                <tr>
                    <td><img src="../../../Media/Default/image/@Model.Avatar" /></td>
                </tr>
            </table>
        </div>
        <div id="information"> 
       
            <div style="margin:60px 0px 0px"></div>
             @Html.ValidationSummary(T("Thay đổi mật khẩu không thành công. Vui lòng thử lại.").ToString())
                <table style="width:650px">
                    <tr>
                        <td style="font-size:40px;">Đổi mật khẩu
                        </td>                      
                    </tr>
                    <tr>
                        <td>
                        @Html.PasswordFor(model=>model.Password,new{@class="txttext1" ,@placeholder="Mật khẩu hiện tại", style="font-size:16px"})
                        @Html.ValidationMessageFor(model => model.Password)
                      </td>
                    </tr>
                    <tr>
                        <td> @Html.PasswordFor(model => model.NewPassword, new { @class = "txttext1", @placeholder = "Mật khẩu mới", style = "font-size:16px" })
                        @Html.ValidationMessageFor(model => model.NewPassword)
                        </td>
                    </tr>
                    <tr>
                        <td> @Html.PasswordFor(model => model.ConfirmPassword, new { @class = "txttext1", @placeholder = "Xác nhận mật khẩu", style = "font-size:16px" })
                        @Html.ValidationMessageFor(model => model.ConfirmPassword)
                        </td>
                    </tr>
                    <tr>
                        <td style="float:right"> 
                            <button style="width:110px">Hủy bỏ</button> <button type="submit" class="btnSubmit" style="width:110px">Lưu thay đổi</button> 
                        </td>
                    </tr>
                </table>  
           </div>
    </main>
</div>

}







        @*<legend>@T("Account Information")</legend>
         <div>
            <label for="currentPassword"></label>
            @Html.Password("currentPassword") 
            @Html.ValidationMessage("currentPassword") 
        </div>        
        <div>
            <label for="newPassword">@T("New password:")</label>
            @Html.Password("newPassword") 
            @Html.ValidationMessage("newPassword") 
        </div>
        <div>
            <label for="confirmPassword">@T("Confirm new password:")</label>
            @Html.Password("confirmPassword") 
            @Html.ValidationMessage("confirmPassword") 
        </div>
        <div>
            <button class="primaryAction" type="submit">@T("Change Password")</button>
        </div>
    </fieldset>*@
